<?php

ob_start();

require "header.php";
require "display_functions.php";

if (isset($_GET['kn'])) $kn = $_GET['kn'];
else $kn = 0;

if (isset($_GET['id'])) $id = $_GET['id'];
else $id = 0;
$corpImage = $id;
		
if (!(file_exists("corp/". $corpImage . ".png")))
{
	$corpImage = "noImage";
}	

?>

<tr>
	<th><?php echo(getCorpName($id)); ?></th>
</tr>
<tr>
	<td style="text-align:center;">
		<table style="width:100%">
			<tr>
				<td style="width:64px"><img class="bigShipImage" src="corp/<?php echo($corpImage);?>.png" /></td>
				<td style="width:25%"><a href="ckills.php?id=<?php echo($id); ?>"><img border="0" src="images/kills.png" /><br/>kills</a></td>
				<td style="width:25%"><a href="closses.php?id=<?php echo($id); ?>"><img border="0" src="images/losses.png" /><br/>losses</a></td>
				<td style="width:25%"><img border="0" src="images/alliance.png"  /><br />alliance</td>
				<td style="width:25%"><img border="0" src="images/members.png" /><br />members</td>
			</tr>
		</table>
	</td>			
</tr>
<tr>
	<th>Losses</th>
</tr>

<?php 

drawCorpLosses($id, 10, $kn); 

require "footer.php";

ob_end_flush();
?>